package itheima.C02_缓冲流BUffer;

import java.io.*;

public class Test2 {
    public static void main(String[] args) throws IOException {
        try {
            FileWriter fw1 = new FileWriter("day11_io\\src\\itheima\\C01_io_char_reader\\aikun.txt");
            FileReader fr1 = new FileReader("C:\\Users\\Public\\Nwt\\cache\\recv\\单笑\\kun.txt");
            BufferedReader br=new BufferedReader(fr1);
            BufferedWriter bw=new BufferedWriter(fw1);
            String line;
            while ((line = br.readLine()) != null) {
               // bw.write(line);
                bw.write(line+"⭐");
                bw.newLine();
                bw.flush();
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

/*    fw.write("hello");
    fw.write("\r\n");
    fw.write("world,java");
    fw.write("\n");*/

    }
}
